package com.hq.fxh.No4_XiaoXi.Tongzhi;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.hq.fxh.No0_ChengQu.Activity.BaseActivity;
import com.hq.fxh.R;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/9/18
 * @Email xlwenhao1858@sina.com
 */


public class TongZhiActivity extends BaseActivity implements View.OnClickListener {
    protected ImageView toolbarImageBack;
    protected LinearLayout toolbarLayoutBack;
    protected TextView toolBarTvTitle;
    protected TextView toolBarTvMore;
    protected LinearLayout toolbarLayoutMore;
    protected PullToRefreshListView listFenSi;

    @Override
    protected void initView() {
        toolbarImageBack = (ImageView) findViewById(R.id.toolbar_image_back);
        toolbarLayoutBack = (LinearLayout) findViewById(R.id.toolbar_Layout_back);
        toolbarLayoutBack.setOnClickListener(TongZhiActivity.this);
        toolBarTvTitle = (TextView) findViewById(R.id.toolBar_tv_Title);
        toolBarTvMore = (TextView) findViewById(R.id.toolBar_tv_More);
        toolbarLayoutMore = (LinearLayout) findViewById(R.id.toolbar_Layout_More);
        listFenSi = (PullToRefreshListView) findViewById(R.id.list_FenSi);

    }

    @Override
    protected void initData() {
        toolBarTvMore.setVisibility(View.INVISIBLE);
        toolBarTvTitle.setText("通知中心");
        toolBarTvTitle.getPaint().setFakeBoldText(true);
        listFenSi.setAdapter(new Ladapter_TongZhi());
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_my_fen_si;
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == R.id.toolbar_Layout_back) {
            finish();

        }
    }
}
